package com.woniuxy.educationplatform.mapper;

import com.woniuxy.educationplatform.bean.StuVideosBean;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StuVideosMapper {

    /**
     * 分页查询
     * @param stuVideosBean 含有参数的studentBean
     * @return List集合
     */
    List<StuVideosBean> findAllByParams(@Param("sv") StuVideosBean stuVideosBean);


    /**
     *
     * @param svid
     * @return
     */
    @Delete("delete from stu_video where svid = #{svid}")
    int deleteStuVideoBean(@Param("svid")Long svid);
}
